package com.dhl.mediator.smarthouse;

import com.dhl.mediator.Mediator;

/**
 * @title: Colleague
 * @Author danghailiang
 * @Date: 2022/8/22 10:43
 * @Version 1.0
 */
public abstract class Colleague {
    /**、
     * 名称
     */
    protected String name;
    /**
     * 调解员
     */
    protected Mediator mediator;


    public Colleague(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

    protected abstract void sendMessage(int stateChange);
    protected  Mediator getMediator(){
        return this.mediator;
    }

}
